home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / necko / nsIAboutModule.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  110 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIAboutModule.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIAboutModule_h__
  6. #define __gen_nsIAboutModule_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. #ifndef __gen_nsIChannel_h__
  14. #include "nsIChannel.h"
  15. #endif
  16.  
  17. /* For IDL files that don't want to include root IDL files. */
  18. #ifndef NS_NO_VTABLE
  19. #define NS_NO_VTABLE
  20. #endif
  21. class nsIURI; /* forward declaration */
  22.  
  23. class nsILoadGroup; /* forward declaration */
  24.  
  25. class nsIInterfaceRequestor; /* forward declaration */
  26.  
  27. class nsIEventQueue; /* forward declaration */
  28.  
  29.  
  30. /* starting interface:    nsIAboutModule */
  31. #define NS_IABOUTMODULE_IID_STR "692303c0-2f83-11d3-8cd0-0060b0fc14a3"
  32.  
  33. #define NS_IABOUTMODULE_IID \
  34.   {0x692303c0, 0x2f83, 0x11d3, \
  35.     { 0x8c, 0xd0, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3 }}
  36.  
  37. class NS_NO_VTABLE nsIAboutModule : public nsISupports {
  38.  public: 
  39.  
  40.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IABOUTMODULE_IID)
  41.  
  42.   /**
  43.      * Constructs a new channel for the about protocol module. 
  44.      *
  45.      * @param aURI the uri of the new channel
  46.      */
  47.   /* nsIChannel newChannel (in nsIURI aURI); */
  48.   NS_IMETHOD NewChannel(nsIURI *aURI, nsIChannel **_retval) = 0;
  49.  
  50. };
  51.  
  52. /* Use this macro when declaring classes that implement this interface. */
  53. #define NS_DECL_NSIABOUTMODULE \
  54.   NS_IMETHOD NewChannel(nsIURI *aURI, nsIChannel **_retval); 
  55.  
  56. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  57. #define NS_FORWARD_NSIABOUTMODULE(_to) \
  58.   NS_IMETHOD NewChannel(nsIURI *aURI, nsIChannel **_retval) { return _to NewChannel(aURI, _retval); } 
  59.  
  60. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  61. #define NS_FORWARD_SAFE_NSIABOUTMODULE(_to) \
  62.   NS_IMETHOD NewChannel(nsIURI *aURI, nsIChannel **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->NewChannel(aURI, _retval); } 
  63.  
  64. #if 0
  65. /* Use the code below as a template for the implementation class for this interface. */
  66.  
  67. /* Header file */
  68. class nsAboutModule : public nsIAboutModule
  69. {
  70. public:
  71.   NS_DECL_ISUPPORTS
  72.   NS_DECL_NSIABOUTMODULE
  73.  
  74.   nsAboutModule();
  75.  
  76. private:
  77.   ~nsAboutModule();
  78.  
  79. protected:
  80.   /* additional members */
  81. };
  82.  
  83. /* Implementation file */
  84. NS_IMPL_ISUPPORTS1(nsAboutModule, nsIAboutModule)
  85.  
  86. nsAboutModule::nsAboutModule()
  87. {
  88.   /* member initializers and constructor code */
  89. }
  90.  
  91. nsAboutModule::~nsAboutModule()
  92. {
  93.   /* destructor code */
  94. }
  95.  
  96. /* nsIChannel newChannel (in nsIURI aURI); */
  97. NS_IMETHODIMP nsAboutModule::NewChannel(nsIURI *aURI, nsIChannel **_retval)
  98. {
  99.     return NS_ERROR_NOT_IMPLEMENTED;
  100. }
  101.  
  102. /* End of implementation class template. */
  103. #endif
  104.  
  105. #define NS_ABOUT_MODULE_CONTRACTID        "@mozilla.org/network/protocol/about;1" 
  106. #define NS_ABOUT_MODULE_CONTRACTID_PREFIX NS_ABOUT_MODULE_CONTRACTID "?what=" 
  107. #define NS_ABOUT_MODULE_CONTRACTID_LENGTH 49      // nsCRT::strlen(NS_ABOUT_MODULE_CONTRACTID_PREFIX)
  108.  
  109. #endif /* __gen_nsIAboutModule_h__ */
  110.